package com.twang.stock.controller.old;

import com.twang.stock.service.jinyan.QinXUZhiShuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 */
@Controller
@RequestMapping(value = "/duanxianbao")
@Slf4j
public class DuanXianBaoController {

    @Autowired
    private QinXUZhiShuService qinXUZhiShuService;

    @RequestMapping(value = "/query")
    public ModelAndView query(){
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("resultList",  qinXUZhiShuService.queryDuanXianBaoList());
        modelAndView.setViewName("duanxianbao");
        return  modelAndView;
    }
    @RequestMapping(value = "/queryDuanXianBao")
    public ModelAndView queryDuanXianBao(){
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("resultList",  qinXUZhiShuService.queryDuanXianBao());
        modelAndView.setViewName("duanxianbao");
        return  modelAndView;
    }


}
